#ifndef _HCC_ERROR_CODE_MID_FTP_H_
#define _HCC_ERROR_CODE_MID_FTP_H_

#include "ofc/ofc_types.h"
#include "hcc/hcc_error_code.h"
#include "hcc/hcc_error_code_mid.h"

#ifdef __cplusplus
extern "C" {
#endif

// 不含行号的错误码生成
#define HCC_MAKE_MID_FTP_ERROR(error_code) (int)HCC_MAKE_MID_WARE_ERROR(kHccMidWareFtpClient, error_code, HCC_ERROR_LEVEL_ERROR)
// 含行号的错误码生成
#define HCC_MAKE_MID_FTP_ERROR_LINE(error_code) (int)HCC_ERROR(HCC_MAKE_MID_WARE_ERROR(kHccMidWareFtpClient, error_code, HCC_ERROR_LEVEL_ERROR))


/**
 * 基于AtCtrl的FtpClient:
 */
enum THccMidFtpErrorCodeEnumTag
{
	kHccMidFtpSuccess	=	HCC_ERROR_SUCCESS,			///< 成功,没有错误
	kHccMidFtpCodeFailed	=	HCC_MAKE_MID_FTP_ERROR(1),			///<失败
	kHccMidFtpParamInvalid	=	HCC_MAKE_MID_FTP_ERROR(2),			///<参数无效
	kHccMidFtpIdInvaild	=	HCC_MAKE_MID_FTP_ERROR(3),			///<Ftp句柄无效
	kHccMidFtpUnableConnect	=	HCC_MAKE_MID_FTP_ERROR(4),			///<服务器无法连接
	kHccMidFtpAuthFailed	=	HCC_MAKE_MID_FTP_ERROR(5),			///<登录失败
	kHccMidFtpFileInvaild	=	HCC_MAKE_MID_FTP_ERROR(6),			///<读取文件失败
	kHccMidFtpInvaildConnect	=	HCC_MAKE_MID_FTP_ERROR(7),			///<连接异常 当前操作时,已断开连接
	kHccMidFtpMiscalculation	=	HCC_MAKE_MID_FTP_ERROR(8),			///<下载计算尺寸出错
};
typedef enum THccMidFtpErrorCodeEnumTag THccMidFtpErrorCodeEnum;


typedef Int32 THccMidFtpErrorCodeEnumLine;
#define kHccMidFtpSuccessLine	HCC_ERROR_SUCCESS	///< 成功,没有错误
#define kHccMidFtpCodeFailedLine	HCC_MAKE_MID_FTP_ERROR_LINE(1)	///<失败
#define kHccMidFtpParamInvalidLine	HCC_MAKE_MID_FTP_ERROR_LINE(2)	///<参数无效
#define kHccMidFtpIdInvaildLine	HCC_MAKE_MID_FTP_ERROR_LINE(3)	///<Ftp句柄无效
#define kHccMidFtpUnableConnectLine	HCC_MAKE_MID_FTP_ERROR_LINE(4)	///<服务器无法连接
#define kHccMidFtpAuthFailedLine	HCC_MAKE_MID_FTP_ERROR_LINE(5)	///<登录失败
#define kHccMidFtpFileInvaildLine	HCC_MAKE_MID_FTP_ERROR_LINE(6)	///<读取文件失败
#define kHccMidFtpInvaildConnectLine	HCC_MAKE_MID_FTP_ERROR_LINE(7)	///<连接异常 当前操作时,已断开连接
#define kHccMidFtpMiscalculationLine	HCC_MAKE_MID_FTP_ERROR_LINE(8)	///<下载计算尺寸出错

#ifdef __cplusplus
}  // extern "C"
#endif

#endif // _HCC_ERROR_CODE_MID_FTP_H_
/**
 * @
 */
